package com.facebank.usersupport.mapper.usersupport.usersupport;

import com.facebank.usersupport.model.DgutOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

@Repository
public interface DgutOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DgutOrder record);

    int insertSelective(DgutOrder record);

    DgutOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DgutOrder record);

    int updateByPrimaryKey(DgutOrder record);

    DgutOrder selectByOrderNo(Long orderNo);

    BigDecimal amountSum(@Param("startTime") Long startTime, @Param("endTime")Long endTime);
}